using net_work.Data.DTO.Hmw;
using net_work.Data.Entity.Hmw;

namespace net_work.IRepository.Hmw;

public interface IHomeworkQuestionRepository : IRepository<HomeworkQuestion>
{
    /// <summary>
    /// 插入作业题目
    /// </summary>
    /// <param name="homeworkQuestionAddRequest">插入作业题目</param>
    /// <returns>影响行数</returns>
    Task<int> InsertAsync(HomeworkQuestionAddRequest homeworkQuestionAddRequest);

    /// <summary>
    /// 更新作业题目信息
    /// </summary>
    /// <param name="homeworkQuestionUpdateRequest">更新作业题目信息</param>
    /// <returns>是否成功</returns>
    Task<bool> UpdateAsync(HomeworkQuestionUpdateRequest homeworkQuestionUpdateRequest);
}